home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Script: dynRelEditorPane.mel
- //
- // SYNOPSIS
- // Creates a panel that contains a dynamics relationship editor.
- //
-
-
- global proc dynRelEditorPane(string $panelName) {
-
- global string $gMainPane;
-
- if (! `scriptedPanelType -exists dynRelEdPanel`) {
- scriptedPanelType
- -createCallback "createDynREPanel"
- -addCallback "addDynREPanel"
- -removeCallback "removeDynREPanel"
- dynRelEdPanel;
-
- setParent $gMainPane;
- scriptedPanel -unParent -type "dynRelEdPanel" $panelName;
- }
- }
-
- global proc buildDynREContextHelpItems(string $nameRoot, string $menuParent)
- //
- // Description:
- // Build context sensitive menu items
- //
- // Input Arguments:
- // $nameRoot - name to use as the root of all item names
- // $menuParent - the name of the parent of this menu
- //
- // Return Value:
- // None
- //
- {
- menuItem -label "Help on Dynamic Relationships Editor..."
- -enableCommandRepeat false
- -command "showHelp DynamicRelationship";
- }
-
- global proc createDynREPanel(string $whichPanel)
- {
- outlinerEditor
- -unParent
- -mainListConnection worldList
- -selectionConnection modelList
- -highlightActive true
- ($whichPanel+"dynRelOutlinerEditor");
- dynRelEditor -unParent ($whichPanel+"dynRelEditor");
-
- // Add support for the Context Sensitive Help Menu.
- //
- addContextHelpProc $whichPanel "buildDynREContextHelpItems";
- }
-
- global proc addDynREPanel( string $whichPanel ) {
-
- string $edParent;
-
- frameLayout -bv 0 -cll 0 -lv 0 dynREFrameLayout;
- $edParent = `paneLayout
- -configuration "vertical2"
- -ps 1 35 100 dynREPaneLayout`;
-
- outlinerEditor -e -parent $edParent
- ($whichPanel+"dynRelOutlinerEditor");
- dynRelEditor -e -parent $edParent
- ($whichPanel+"dynRelEditor");
- }
-
- global proc removeDynREPanel(string $whichPanel)
- {
- outlinerEditor -e -unParent
- ($whichPanel+"dynRelOutlinerEditor");
- dynRelEditor -e -unParent
- ($whichPanel+"dynRelEditor");
- }
-
-